<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:th="http://www.thymeleaf.org" lang="zh">

<head>
	<link rel="StyleSheet" href="../../static/css/jpetstore.css" type="text/css"
		  media="screen" />

	<meta name="generator"
		  content="HTML Tidy for Linux/x86 (vers 1st November 2002), see www.w3.org" />
	<title>JPetStore Demo</title>
	<meta content="text/html; charset=windows-1252"
		  http-equiv="Content-Type" />
	<meta http-equiv="Cache-Control" content="max-age=0" />
	<meta http-equiv="Cache-Control" content="no-cache" />
	<meta http-equiv="expires" content="0" />
	<meta http-equiv="Expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
	<meta http-equiv="Pragma" content="no-cache" />
	<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
	<script src="https://cdn.staticfile.org/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
</head>

<body>

<div th:include="~{common/commonSide::topbar}"></div>

<div id="BackLink">
	<a href="/viewCart">Return to Shopping Cart</a>
</div>
<div id="Catalog">

	<table>
		<tr>
			<td>
				<h2>Checkout Summary</h2>

				<table>

					<tr>
						<td><b>Item ID</b></td>
						<td><b>Product ID</b></td>
						<td><b>Description</b></td>
						<td><b>In Stock?</b></td>
						<td><b>Quantity</b></td>
						<td><b>List Price</b></td>
						<td ><b>Total Cost</b></td>
					</tr>

					<!-- 循环 -->
					<tr th:each="item:${shopCarts}">
						<td th:text="${item.getItemid()}"></td>
						<td th:text="${item.getProductId()}"></td>
						<td th:text="${item.attr1}"></td>
						<td>no</td>
						<td>1000</td>
						<td th:text="${item.getListPrice()}"></td>
						<td></td>
					</tr>
					<tr>
						<td colspan="7" th:text="'Sub Total: '+ ${money}"></td>
					</tr>
				</table>
			<td>&nbsp;</td>
		</tr>
	</table>
</div>
</div>
<div th:include="~{common/commonSide::footer}"></div>

</body>
</html>